/* 全局重置和基础样式 */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* 根元素和主体样式 */
html, body, #app {
  height: 100%;
  width: 100%;
  margin: 0;
  padding: 0;
  font-family: "Inter", "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", "Heiti SC", "WenQuanYi Micro Hei", sans-serif;
  background-color: #001529;
  color: #fff;
  overflow-x: hidden;
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* 滚动条样式美化 */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb {
  background: rgba(144, 147, 153, 0.5);
  border-radius: 4px;
  transition: background 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(144, 147, 153, 0.8);
}

/* 页面主容器 */
.app-container {
  height: 100vh;
  min-height: 100vh;
  padding: 20px;
  display: flex;
  flex-direction: column;
  background: linear-gradient(135deg, #001529 0%, #002140 100%);
}

/* 页面标题 */
.app-title {
  text-align: center;
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 30px;
  color: #fff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* 卡片通用样式 */
.el-card {
  background: rgba(10, 31, 61, 0.95) !important;
  color: #fff !important;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  margin-bottom: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
  overflow: hidden;
}

.el-card:hover {
  box-shadow: 0 8px 32px rgba(0, 160, 255, 0.2);
  border-color: rgba(64, 158, 255, 0.3);
}

.el-card__header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
  background: rgba(10, 31, 61, 0.8) !important;
}

/* Element Plus 全局样式覆盖 */
.el-button {
  border-radius: 6px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.el-button--primary {
  background-color: #409eff;
  border-color: #409eff;
}

.el-button--primary:hover {
  background-color: #66b1ff;
  border-color: #66b1ff;
}

.el-tag {
  border-radius: 4px;
  font-size: 12px;
  padding: 0 8px;
  height: 24px;
  line-height: 22px;
}

.el-tag--success {
  background-color: rgba(82, 196, 26, 0.2);
  border-color: rgba(82, 196, 26, 0.3);
  color: #67c23a;
}

.el-tag--danger {
  background-color: rgba(245, 108, 108, 0.2);
  border-color: rgba(245, 108, 108, 0.3);
  color: #f56c6c;
}

.el-tag--info {
  background-color: rgba(64, 158, 255, 0.2);
  border-color: rgba(64, 158, 255, 0.3);
  color: #409eff;
}

/* 分页样式 */
.el-pagination {
  margin-top: 20px;
  text-align: center;
}

.el-pagination .el-pagination__prev,
.el-pagination .el-pagination__next,
.el-pagination .el-pagination__jump-prev,
.el-pagination .el-pagination__jump-next {
  color: rgba(255, 255, 255, 0.7);
  border-radius: 4px;
}

.el-pagination .el-pagination__prev:hover,
.el-pagination .el-pagination__next:hover {
  color: #409eff;
  background-color: rgba(64, 158, 255, 0.1);
}

.el-pagination .el-pager li {
  color: rgba(255, 255, 255, 0.7);
  border-radius: 4px;
  min-width: 32px;
  height: 32px;
  line-height: 32px;
  margin: 0 5px;
  transition: all 0.3s ease;
}

.el-pagination .el-pager li:hover:not(.disabled):not(.active) {
  color: #409eff;
  background-color: rgba(64, 158, 255, 0.1);
}

.el-pagination .el-pager li.active {
  background-color: #409eff;
  color: #fff;
}

/* 骨架屏样式 */
.el-skeleton {
  background: rgba(10, 31, 61, 0.95) !important;
  border-radius: 8px;
  padding: 20px;
}

.el-skeleton__row {
  background: rgba(255, 255, 255, 0.1) !important;
  margin-bottom: 10px !important;
  border-radius: 4px;
}

/* 消息提示样式 */
.el-message {
  background-color: rgba(10, 31, 61, 0.95);
  border-color: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-radius: 8px;
}

.el-message--success {
  background-color: rgba(82, 196, 26, 0.1);
  border-color: rgba(82, 196, 26, 0.3);
  color: #67c23a;
}

.el-message--warning {
  background-color: rgba(230, 162, 60, 0.1);
  border-color: rgba(230, 162, 60, 0.3);
  color: #e6a23c;
}

.el-message--error {
  background-color: rgba(245, 108, 108, 0.1);
  border-color: rgba(245, 108, 108, 0.3);
  color: #f56c6c;
}

/* 工具提示样式 */
.el-tooltip__popper {
  background-color: rgba(0, 0, 0, 0.9) !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
  color: #fff !important;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

/* 响应式设计 */
@media (max-width: 768px) {
  .app-container {
    padding: 10px;
  }
  
  .app-title {
    font-size: 1.5rem;
    margin-bottom: 20px;
  }
  
  .el-card {
    margin-bottom: 15px;
    border-radius: 8px;
  }
  
  .el-pagination {
    margin-top: 15px;
  }
  
  .el-pagination .el-pager li {
    min-width: 28px;
    height: 28px;
    line-height: 28px;
    margin: 0 3px;
  }
}

@media (max-width: 480px) {
  .app-container {
    padding: 8px;
  }
  
  .app-title {
    font-size: 1.3rem;
  }
  
  .el-card {
    margin-bottom: 10px;
  }
}

/* 动画效果 */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
  100% {
    opacity: 1;
  }
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideInLeft {
  from {
    transform: translateX(-100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* 工具类 */
.fade-in {
  animation: fadeIn 0.3s ease-out;
}

.pulse {
  animation: pulse 2s infinite;
}

.slide-in-right {
  animation: slideInRight 0.5s ease-out;
}

.slide-in-left {
  animation: slideInLeft 0.5s ease-out;
}

.text-center {
  text-align: center;
}

.text-left {
  text-align: left;
}

.text-right {
  text-align: right;
}

.mt-10 {
  margin-top: 10px;
}

.mt-20 {
  margin-top: 20px;
}

.mb-10 {
  margin-bottom: 10px;
}

.mb-20 {
  margin-bottom: 20px;
}

.p-10 {
  padding: 10px;
}

.p-20 {
  padding: 20px;
}
